package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;

public class AlarmData implements Parcelable {

	private static final String TAG = "AlarmData";

	private String alarmTime;
	private String alarmMsg;

	public AlarmData() {
		Log.i(TAG, "AlarmData");
	}
	
	private AlarmData(Parcel in) {
		this.alarmTime = in.readString();
		this.alarmMsg = in.readString();
	}
	
	@Override
	public int describeContents() {
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.alarmTime);
		dest.writeString(this.alarmMsg);
	}
	
	public static final Parcelable.Creator<AlarmData> CREATOR =new Parcelable.Creator<AlarmData>() {

		@Override
		public AlarmData createFromParcel(Parcel source) {
			return new AlarmData(source);
		}

		@Override
		public AlarmData[] newArray(int size) {
			return new AlarmData[size];
		}
	};
	
	public String getAlarmTime() {
		return alarmTime;
	}

	public void setAlarmTime(String alarmTime) {
		this.alarmTime = alarmTime;
	}

	public String getAlarmMsg() {
		return alarmMsg;
	}

	public void setAlarmMsg(String alarmMsg) {
		this.alarmMsg = alarmMsg;
	}
}
